package com.ctbu.tourism.entity;

public class Message {
    //消息id
    private Integer id;
    //发送者id
    private Integer sid;
    private String name1;
    //接受者id
    private Integer rid;
    private String name2;

    //消息类型
    private String type;
    //消息内容
    private String content;
    //消息链接
    private Integer link;

    public Message(){
    }

    public Message(Integer id, Integer sid, String name1, Integer rid, String name2) {
        this.id = id;
        this.sid = sid;
        this.name1 = name1;
        this.rid = rid;
        this.name2 = name2;
    }

    public Message(Integer id, Integer sid, String name1, Integer rid, String name2, String type, String content, Integer link) {
        this.id = id;
        this.sid = sid;
        this.name1 = name1;
        this.rid = rid;
        this.name2 = name2;
        this.type = type;
        this.content = content;
        this.link = link;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLink() {
        return link;
    }

    public void setLink(Integer link) {
        this.link = link;
    }
}
